package com.xxg.renrencommon.domain.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 带货设置信息
 *
 * @author szj
 * @date 2021/11/29
 */
@Data
@Document(collection = "carryProductSettingInfo")
@ApiModel(value = "CarryProductSettingInfo")
public class CarryProductSettingInfo {
    /**
     * 数据主键
     */
    @ApiModelProperty("数据主键")
    private String id;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    /**
     * 记录更新时间
     */
    @ApiModelProperty(value = "记录更新时间", hidden = true)
    private Date updateTime;

    /**
     * 商品spuId
     */
    @ApiModelProperty(value = "商品spuId")
    private Integer spuId;

    /**
     * 店铺Id
     */
    @ApiModelProperty(value = "店铺Id", hidden = true)
    private Integer shopId;

    /**
     * 用户Id
     */
    @ApiModelProperty(value = "用户Id", hidden = true)
    private Integer userId;

    /**
     * 是否有带货权限 true-是，false-否
     */
    @ApiModelProperty("是否有带货权限 true-是，false-否")
    private Boolean carryAble;

    /**
     * 带货是否需要申请 true-是，false-否
     */
    @ApiModelProperty("带货是否需要申请 true-是，false-否")
    private Boolean carryApplyAble;

    /**
     * 最小带货系数
     */
    @ApiModelProperty("最小带货系数")
    private Double minCarryRatio;

    /**
     * 最大带货系数
     */
    @ApiModelProperty("最大带货系数")
    private Double maxCarryRatio;

    /**
     * 0-全局 1-单个spuId
     */
    @ApiModelProperty("0-全局 1-单个spuId")
    private Integer type;

}
